<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/9
 * Time: 11:45
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait VipCardRuleTrait
{
    use BaseTrait;

    // 会员卡规则ID
    protected $id;
    // 规则名称
    protected $name;
    // 验证秘钥
    protected $loginSession;
    // 会员卡规则ID
    protected $vip_card_rule_id;
    // 会员卡规则列表字符串
    protected $vip_card_rule_value_list_str;

    public function __construct(Request $request)
    {
        $this->id = $request->input('id', 0);
        $this->name = $request->input('name', '');
        $this->loginSession = $request->input('loginSession', '');
        $this->vip_card_rule_id = $request->input('vip_card_rule_id', 0);
        $this->vip_card_rule_value_list_str = $request->input('vip_card_rule_value_list_str', '');
    }
}